<?php
namespace App\Controller;
use Think\Controller;
class ShowController extends Controller {

	//跳转到演出类页面
    public function showList()
    {
        $data = G_DATA();
        if(checkToken($data)=="false")
        {
            //参数不正确
            error('E1010');
            exit;
        }
        $page = $data['page'];
        $limit = $data['limit'];
        $pages = ($page-1)*$limit;
        $res = M('show')  -> limit($pages, $limit) -> select();
        
        if($res)
        {
            $res['token'] = $data['token'];
            success($res);
        }else
        {
            error('E1003');
        }

    }

  
}